package com.itheima.fanxing.demo2;

import java.util.ArrayList;

public class Demo2 {
    public static void main(String[] args) {
        ArrayList<String> list=new ArrayList<>();
        ArrayList<String> arrayList = addElement(list, "a", "a", "a", "a");

    }
    public static <T> ArrayList<T> addElement(ArrayList<T> element,T e1,T e2,T e3,T e4){
        element.add(e1);
        element.add(e2);
        element.add(e3);
        element.add(e4);
        return element;

    }
}
